import { defineStore } from "pinia";
import { reactive } from "vue";

export const useAppStore = defineStore("app", () => {
  const location = reactive({
    lng: "",
    lat: "",
  });

  const setLocation = (data: any) => {
    location.lng = data.longitude;
    location.lat = data.latitude;
  };

  return {
    location,
    setLocation,
  };
});
